package com.xw.echo.core.trans;

import com.xw.echo.core.protocol.MethodInvokData;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

public interface TransPort {
   Object invoker(MethodInvokData methodInvokData) throws InterruptedException, ExecutionException;
   CompletableFuture<Object> asyncInvoker(MethodInvokData methodInvokData);

}
